@font-face {
    font-family: "TT-Ricordi-Allegria-Trial";
    src: url(/fonts/TT-Ricordi-Allegria-Trial.woff2) format("woff2"),
         url(/fonts/TT-Ricordi-Allegria-Trial.woff) format("woff");
    font-weight: 400;
    font-style: regular;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Paneuropean";
    src: url(/fonts/Century-Gothic-Paneuropean.woff2) format("woff2"),
         url(/fonts/Century-Gothic-Paneuropean.woff) format("woff");
    font-weight: 400;
    font-style: light;
    font-display: swap;
}

:root {
    --bg: #353432;
    --bg-soft: #3b3a38;
    --line: rgba(243, 238, 230, 0.22);
    --line-strong: rgba(243, 238, 230, 0.42);
    --text: #f3eee6;
    --text-soft: rgba(243, 238, 230, 0.86);
    --text-muted: rgba(243, 238, 230, 0.68);
    --accent: #ef2f21;
    --radius: 14px;
    --container: 1720px;
    --sticky-top: 104px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Century Gothic Paneuropean", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 80px);
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: "TT-Ricordi-Allegria-Trial", serif;
    font-size: clamp(30px, 3vw, 54px);
    line-height: 0.98;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}



/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1440px) {
    .container {
        padding: 0 32px;
    }

}

    /* Адаптив шапки и первого экрана, мобильные */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
}


/* Адаптив шапки и первого экрана, мобильные мин. */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }
}

/* ===== HERO ===== */

.case-hero {
    padding-top: 12px;
}

.case-hero__box {
    position: relative;
    border: 1px solid rgba(243, 238, 230, 0.25);
    border-radius: 14px;
    padding: 22px 22px 0 22px;
}

.case-hero__main {
    display: grid;
    grid-template-columns: minmax(640px, 1fr) 620px;
    gap: 48px;
    align-items: start;
}

.case-hero__title {
    margin-top: 10px;
    max-width: 940px;
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: clamp(40px, 3.2vw, 55px);
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.case-hero__subtitle {
    max-width: 940px;
    font-size: 34px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 34px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.case-hero__text {
    max-width: 940px;
    font-size: 22px;
    line-height: 1.42;
    color: var(--text-muted);
    margin-bottom: 42px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.case-hero__nda {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px dashed rgba(243, 238, 230, 0.4);
}

.case-hero__nda-mark {
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: 54px;
    line-height: 1;
    text-transform: uppercase;
}

.case-hero__nda-text {
    font-size: 18px;
    line-height: 1.3;
    color: var(--text-muted);
}

.case-hero__right {
    position: relative;
    min-height: 100%;
}

.case-hero__scheme {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.case-hero__scheme-image {
    width: 100%;
    max-width: 830px;
    object-fit: contain;
}


.case-hero__box::after {
    content: "";
    position: absolute;
    right: 34px;         /* подгоняем под положение цитаты */
    bottom: 10px;
    width: 430px;        /* ширина зоны, где нужно скрыть нижнюю линию */
    height: 3px;
    background: #353432; /* цвет фона страницы/контейнера */
    z-index: 2;
}
.case-hero__quote--desktop {
    position: absolute;
    right: clamp(12px, 4vw, 72px);
    min-width: 0;
    width: min(42vw, 600px);
    bottom: -2px;
    padding: 14px 28px 12px;
    border: 1px solid rgba(243, 238, 230, 0.24);
    border-bottom: none;
    border-radius: 32px 32px 0 0;
    background-color: #353432;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.hero__note {
    margin: 0;
    text-align: center;
    font-family: "TT-Ricordi-Allegria-Trial", serif;
    font-size: clamp(20px, 1.7vw, 30px);
    line-height: 1.2;
    text-transform: uppercase;
    color: #f3eee6;
}

/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1440px) {
     .case-hero__quote--desktop {
        right: 10px;
        min-width: 470px;
        padding: 12px 22px 10px;
    }

    .hero__note {
        font-size: 24px;
    }

    .case-hero__box::after {
        right: 24px;
        width: 360px;
    }
}

/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1360px) {
     .case-hero__quote--desktop {
        right: 20px;
        width: min(46vw, 470px);
    }
}

/* Адаптив шапки и первого экрана, планшеты */
@media (max-width: 1024px) {
    /* цитата ровно на нижней линии */
.case-hero__quote--desktop {
    position: absolute;
    right: 13px;
    bottom: -3px;
    width: 52%;
    min-width: auto;
    max-width: 520px;
    padding: 20px 18px 12px;
    border-radius: 28px 28px 0 0;
}

.hero__note {
    font-size: 19px;
    line-height: 1.08;
}

.case-hero__box::after {
    right: 0;
    width: 52%;
    max-width: 520px;
    display: block;
    
}
}

/* Адаптив шапки и первого экрана, мобильные */
@media (max-width: 767px) {
     .case-hero__quote--desktop {
        position: relative;
        right: auto;
        bottom: -18px;
        min-width: 100%;
        width: 100%;
        padding: 12px 16px 10px;
        border-radius: 24px 24px 0 0;
    }

    .case-hero__quote::before,
    .case-hero__quote::after {
        display: none;
    }

    .hero__note {
        font-size: 20px;
        line-height: 1.1;
    }
}


/* Адаптив шапки и первого экрана, мобильные мин. */
@media (max-width: 375px) {
.case-hero__quote--desktop {
        position: relative;
        right: auto;
        bottom: -18px;
        min-width: 100%;
        width: 100%;
        padding: 12px 16px 10px;
        border-radius: 24px 24px 0 0;
    }

    .case-hero__quote::before,
    .case-hero__quote::after {
        display: none;
    }

    .hero__note {
        font-size: 13px;
        line-height: 1.2;
    }
}

/* ===== COMMON SECTION ===== */

.case-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px dashed rgba(243, 238, 230, 0.38);
}

.case-section__grid {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 54px;
    align-items: start;
    padding-bottom: 20px;
}

.case-section__side {
    position: sticky;
    top: var(--sticky-top);
    align-self: start;
}

.case-section__title {
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: 42px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 34px;
}

.case-section__meta {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 22px;
    line-height: 1.38;
    color: var(--text-soft);
}

.case-section__meta strong {
    color: var(--text);
    font-weight: 400;
}

.case-section__content {
    min-width: 0;
}

.case-section__block + .case-section__block {
    margin-top: 34px;
}

.case-section__block p {
    font-size: 22px;
    line-height: 1.48;
    color: var(--text-soft);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.case-section__block p + p {
    margin-top: 18px;
}

.case-section__subtitle {
    margin-bottom: 16px;
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: 30px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.case-list,
.case-ordered {
    padding-left: 24px;
    margin-top: 16px;
    color: var(--text-soft);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.case-list li,
.case-ordered li {
    font-size: 22px;
    line-height: 1.48;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.case-media {
    margin-top: 18px;
    padding: 12px 0;
}

.case-media__image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(243, 238, 230, 0.08);
}

.case-media--split {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.case-section__metrics {
    margin-top: 42px;
}

.case-section__metrics-title {
    margin-bottom: 22px;
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: 48px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 400;
}

.metric {
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric + .metric {
    margin-top: 18px;
}

.metric__icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.metric__text {
    font-size: 28px;
    line-height: 1.2;
}

.case-toggle {
    display: none;
}

.case-extra {
    display: block;
}

/* ===== MOBILE CASE CONTENT ===== */

.case-mobile {
    display: none;
}

.case-mobile__list {
    display: block;
}

.case-mobile__pair + .case-mobile__pair {
    margin-top: 20px;
}

.case-mobile__short,
.case-mobile__long {
    border-top: 1px dashed rgba(243, 238, 230, 0.28);
    padding-top: 18px;
}

.case-mobile__title {
    margin-bottom: 12px;
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: 24px;
    line-height: 1.12;
    font-weight: 400;
    text-transform: uppercase;
}

.case-mobile__short p,
.case-mobile__long p {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(243, 238, 230, 0.88);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.case-mobile__long p + p {
    margin-top: 12px;
}

.case-mobile__image {
    width: 100%;
    margin-top: 14px;
    border-radius: 8px;
}

.case-mobile__long {
    display: none;
}

.case-mobile__long.is-open {
    display: block;
}

.case-mobile__toggle {
    width: 100%;
    height: 52px;
    margin-top: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid rgba(243, 238, 230, 0.8);
    position: relative;
    overflow: visible;
    user-select: none;
    cursor: pointer;
    background: transparent;
}

.case-mobile__toggle-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 64px;
    font-size: 14px;
    line-height: 1;
    color: #f3eee6;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.case-mobile__toggle-icon {
    width: 52px;
    height: 52px;
    background: #f3eee6;
    border-radius: 6px;
    position: absolute;
    overflow: visible;
    right: 0px;
    top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
    z-index: 1;
}

.case-mobile__toggle.is-open .case-mobile__toggle-icon {
    transform: rotate(180deg);
}

/* laptop */
@media (max-width: 1440px) {


     .case-hero__main {
        grid-template-columns: 1fr 520px;
    }

    .case-hero__title {
        font-size: 55px;
    }

    .case-hero__subtitle {
        font-size: 28px;
    }

    .case-hero__text,
    .case-section__block p,
    .case-list li,
    .case-ordered li,
    .case-section__meta {
        font-size: 19px;
    }


    .case-section__grid {
        grid-template-columns: 420px 1fr;
        gap: 42px;
        padding-bottom: 20px;
    }

    .case-section__title {
        font-size: 30px;
    }

    .case-section__subtitle {
        font-size: 26px;
    }

    .case-section__metrics-title {
        font-size: 26px;
    }

    .metric__text {
        font-size: 24px;
    }

    
}

@media (max-width: 1360px) {
.case-hero__main {
    display: grid;
    grid-template-columns: minmax(540px, 1fr) 520px;
    gap: 48px;
    align-items: start;
}

.case-hero__title {
    margin-top: 10px;
    max-width: 840px;
    font-family: "TT-Ricordi-Allegria-Trial";
    font-size: 56px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.case-hero__subtitle {
    max-width: 840px;
    font-size: 26px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 34px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}
.case-hero__scheme-image {
    width: 90%;
    max-width: 230px;
}
}

.case-hero__text {
    max-width: 840px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--text-muted);
    margin-bottom: 42px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* tablet */
@media (max-width: 1024px) {
    :root {
        --sticky-top: 92px;
    }


    .case-hero__box {
        padding: 20px 20px 0px 20px;
    }

    .case-hero__main {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .case-hero__title {
        font-size: 44px;
        margin-bottom: 24px;
    }

    .case-hero__subtitle {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .case-hero__text {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .case-hero__nda-mark {
        font-size: 38px;
    }

    .case-hero__nda-text {
        font-size: 14px;
        max-width: 200px;
    }

    .case-hero__scheme-image {
        width: 100%;
        max-width: 400px;
        object-fit: contain;
    }


    .case-section__grid {
        grid-template-columns: 280px 1fr;
        gap: 28px;
        padding-bottom: 20px;
    }

    .case-section__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .case-section__meta,
    .case-section__block p,
    .case-list li,
    .case-ordered li {
        font-size: 16px;
        line-height: 1.42;
    }

    .case-section__subtitle {
        font-size: 24px;
    }

    .case-media--split {
        grid-template-columns: 1fr;
    }
    
    
}

/* mobile */
@media (max-width: 767px) {

    :root {
        --sticky-top: 0px;
    }


    .case-mobile {
    display: block;
    margin-top: 20px;
    }

    .case-section {
        display: none;
    }

   
    .case-hero {
        padding-top: 6px;
    }

    .case-hero__box {
        padding: 16px;
        border-radius: 12px;
    }

    .case-hero__main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .case-hero__title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 22px;
    }

    .case-hero__subtitle {
        font-size: 16px;
        line-height: 1.35;
        margin-bottom: 24px;
    }

    .case-hero__right {
        order: 2;
    }

    .case-hero__left {
        order: 1;
    }

    
    .case-hero__quote--mobile {
        display: none;
        margin-bottom: 0px;
        max-width: 100%;
    }


    .case-hero__text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .case-hero__nda {
        gap: 10px;
        align-items: baseline;
    }

    .case-hero__nda-mark {
        font-size: 30px;
    }

    .case-hero__nda-text {
        font-size: 12px;
    }

    .case-hero__scheme {
        justify-content: center;
    }

    .case-hero__scheme-image {
        max-width: 240px;
    }

    .case-hero__quote--desktop {
        display: none;
    }


    .case-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .case-section__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
    }

    .case-section__side {
        position: static;
    }

    .case-section__title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .case-section__meta,
    .case-section__block p,
    .case-list li,
    .case-ordered li {
        font-size: 14px;
        line-height: 1.45;
    }

    .case-list,
    .case-ordered {
        padding-left: 18px;
    }

    .case-section__subtitle {
        font-size: 20px;
    }

    .case-section__metrics-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .metric__icon {
        width: 32px;
        height: 32px;
    }

    .metric__text {
        font-size: 16px;
    }

    .case-extra {
        display: none;
    }

    .case-extra.is-open {
        display: block;
        margin-top: 18px;
    }

    .case-toggle {
        width: 100%;
        height: 50px;
        margin-top: 18px;
        border: 1px solid rgba(243, 238, 230, 0.72);
        border-radius: 10px;
        background: transparent;
        color: var(--text);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 3px 0 18px;
    }

    .case-toggle__text {
        font-size: 14px;
        text-transform: uppercase;
    }

    .case-toggle__icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: var(--text);
        color: var(--bg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: transform 0.25s ease;
    }

    .case-toggle.is-open .case-toggle__icon {
        transform: rotate(180deg);
    }

}

/* small mobile */
@media (max-width: 375px) {

    .case-hero__title {
        font-size: 22px;
    }

    .case-hero__subtitle {
        font-size: 14px;
    }

    .case-section__title {
        font-size: 21px;
    }
}




